package com.ly.mp.cmc.common.reponse;

import lombok.Data;

/**
 * @Author: ly-songpengfei
 * @Date: 2025/8/3 16:32
 * @Description: 结果信息枚举类
 * @Version: 1.0
 */
public enum ResultEnum {

    FAIL("0", "系统似乎出现一点小问题，您可以尝试刷新页面或联系我们的支持团队!"),
    SUCCESS("1", "成功"),

    QUERY_SUCCESS("1", "查询成功"),
    ADD_SUCCESS("1", "添加成功"),
    EDIT_SUCCESS("1", "修改成功"),
    DEL_SUCCESS("1", "删除成功"),

    QUERY_FAIL("-1", "查询失败"),
    ADD_FAIL("-1", "添加失败"),
    EDIT_FAIL("-1", "修改失败"),
    DEL_FAIL("-1", "删除失败");


    private String code;
    private String msg;

    private ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
